﻿@model Parichay.Domain.Models.RegisterModel

@{
    ViewBag.Title = "Sign Up";
}

<h2>New User - Sign Up</h2><br />
<p>
   Please use the form below to create your account. 
<br />
    Passwords are required to be a minimum of @Membership.MinRequiredPasswordLength characters in length.
</p>

<script src="@Url.Content("~/Content/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.")
    <div>
        <fieldset>
            <legend>Registration Information</legend>
            <table class="tblAllBorders">
            <tr><th>
                @Html.LabelFor(m => m.UserName)
            </th><td>
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </td></tr>

            <tr><th>
                @Html.LabelFor(m => m.Email)
            </th><td>
                @Html.TextBoxFor(m => m.Email)
                @Html.ValidationMessageFor(m => m.Email)
            </td></tr>

            <tr><th>
                @Html.LabelFor(m => m.Password)
            </th><td>
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </td></tr>

            <tr><th>
                @Html.LabelFor(m => m.ConfirmPassword)
            </th><td>
                @Html.PasswordFor(m => m.ConfirmPassword)
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </td></tr>

                        <tr><th>
                @Html.LabelFor(m => m.PasswordQuestion)
            </th><td>
                @Html.TextBoxFor(m => m.PasswordQuestion)
                @Html.ValidationMessageFor(m => m.PasswordQuestion)
            </td></tr>

            <tr><th>
                @Html.LabelFor(m => m.PasswordAnswer)
            
            </th><td>
                @Html.PasswordFor(m => m.PasswordAnswer)
                @Html.ValidationMessageFor(m => m.PasswordAnswer)
            </td></tr>
            <tr><th>
                @Html.LabelFor(m => m.Givennm)
            </th><td>
                @Html.TextBoxFor(m => m.Givennm)
                @Html.ValidationMessageFor(m => m.Givennm)
            </td></tr>
            <tr><td colspan="2">
            <input type="submit" value="Register" />
            </td>
            </tr>
            </table>
        </fieldset>
    </div>
}
